<?php

namespace app\common\model;

use think\Model;

class GoodsAttr extends Model
{
    // 表名
    protected $name = 'goods_attr';

    public function goods(){
        return $this->belongsTo('Goods','goods_id','id');
    }

    public function attr(){
        return $this->belongsTo('Attr','attr_id','id');
    }


}